#ifndef POINT_H
#define POINT_H

#include "myshape.h"

class Point : public MyShape
{
public:
    Point(const QPointF &point, const QColor &color);

    QRectF boundingRect() const override;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;

    bool isPointNear(const QPointF &point) const override;
    void highlightControlPoints(const QPointF &point) override;

private:
    static constexpr qreal pointRadius_ = 5.0;
};

#endif // POINT_H
